package com.lengyu.vxminiprogram.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lengyu.vxminiprogram.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuyu
 * @since 2023-01-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="User对象", description="")
public class UserDto extends BaseEntity{

    private static final long serialVersionUID = 1L;

    private String username;

    private String password;

    private Integer sex;


    private String dingUserId;

    private String avatar;

    private String vxOpenId;
    private String vxNickName;
    private String vxAvatar;
    private String phoneNo;


    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    private String email;

    private String roles;

    private boolean deleteFlag;

    private List<String> departList;

    private List<String> roleList;

    private List<String> pageList;

    private List<String> permissions;

}
